<%@ page import="org.model.Update" %>



<div class="fieldcontain ${hasErrors(bean: updateInstance, field: 'status', 'error')} ">
	<label for="status">
		<g:message code="update.status.label" default="Status" />
		
	</label>
	<g:select name="status" from="${updateInstance.constraints.status.inList}" value="${updateInstance?.status}" valueMessagePrefix="update.status" noSelection="['': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: updateInstance, field: 'guid', 'error')} ">
	<label for="guid">
		<g:message code="update.guid.label" default="Guid" />
		
	</label>
	<g:textField name="guid" value="${updateInstance?.guid}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: updateInstance, field: 'accountGuid', 'error')} ">
	<label for="accountGuid">
		<g:message code="update.accountGuid.label" default="Account Guid" />
		
	</label>
	<g:textField name="accountGuid" value="${updateInstance?.accountGuid}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: updateInstance, field: 'dueDate', 'error')} ">
	<label for="dueDate">
		<g:message code="update.dueDate.label" default="Due Date" />
		
	</label>
	<g:textField name="dueDate" value="${updateInstance?.dueDate}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: updateInstance, field: 'updateElements', 'error')} ">
	<label for="updateElements">
		<g:message code="update.updateElements.label" default="Update Elements" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${updateInstance?.updateElements?}" var="u">
    <li><g:link controller="updateElements" action="show" id="${u.id}">${u?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="updateElements" action="create" params="['update.id': updateInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'updateElements.label', default: 'UpdateElements')])}</g:link>
</li>
</ul>

</div>

